package com.yihaodian.search.code.service;

import com.yihaodian.search.code.model.CodeSearchRequest;
import com.yihaodian.search.code.model.SearchResult;
import com.yihaodian.search.code.model.SourceHit;

public interface SearchCodeService {
	/**
	 * Search code sources match the request.
	 * @param request
	 * @return
	 */
	public SearchResult search(CodeSearchRequest request);
	
	/**
	 * Fetch source detail info by id.
	 * @param id
	 * @return
	 */
	public SourceHit fetchSource(String id);
}
